package com.foundersoftware.commons.organization.model;

import java.util.Date;

public class EmailAddress extends AbstractOrganizationObject {

	/**
	 *Object UID
	 */
	private static final long serialVersionUID = -8212202184173735926L;
	
	private EmailAddressType type = null;
	
	private String emailAddress = null;
	
	private boolean valid = true;
	
	private Date createdDate = null;
	
	/**
	 * email address invlid date.If valid is false,the field must not be null or empty.
	 */
	private Date invalidDate = null;

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getInvalidDate() {
		return invalidDate;
	}

	public void setInvalidDate(Date invalidDate) {
		this.invalidDate = invalidDate;
	}

	public EmailAddressType getType() {
		return type;
	}

	public void setType(EmailAddressType type) {
		this.type = type;
	}

	public boolean isValid() {
		return valid;
	}

	public void setValid(boolean valid) {
		this.valid = valid;
	}

	public String getEmailAddress() {
		return emailAddress;
	}

	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	} 
	

}
